
//////////////////////////////////////////////////////////////////////
#ifndef _MSG_HANDLE_SET_MANAGE__H_
#define _MSG_HANDLE_SET_MANAGE__H_


#include "config.h"
#include "MsgManager.h"
#include <string>
#include "MsgHandleSet.h"
namespace KEngine
{
	class _KExport MsgHandleSetManager : public MsgManager<std::string,MsgHandleSet >
	{
	public:
		MsgHandleSet* createMsgHandleSet(MsgHandleSet::TypeEnum type,const char* name,unsigned int max_num)
		{
			MsgHandleSet* p=NULL;
			std::string str = name;
			if(type==MsgHandleSet::Type_Single)
			{
				p = new MsgHandleSetSingle(name,max_num);
			}else if(type==MsgHandleSet::Type_EventSet)
			{
				p = new MsgHandleSetEvent(name,max_num);
			}else
				return p;

			add(str,p);
			return p;
		}


	};

};

#endif

